From dc4a226f95f5dae25f40e9ce96bacde74836f436 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 13 Sep 2005 19:58:34 +0000 Subject: [PATCH] GEO: Populate placer name. --- gpsbabel/geo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gpsbabel/geo.c b/gpsbabel/geo.c index c1f4fc96a..974ca8b59 100644 --- a/gpsbabel/geo.c +++ b/gpsbabel/geo.c @@ -91,12 +91,15 @@ void wpt_name_s(const char *args, const char **attrv) void wpt_name(const char *args, const char **unused) { + char *s; if (!args) return; wpt_tmp->description = xstrappend(wpt_tmp->description,args); - if (nuke_placer) { - char *s = xstrrstr(wpt_tmp->description, " by "); - if (s) { + s = xstrrstr(wpt_tmp->description, " by "); + if (s) { + wpt_tmp->gc_data.placer = xstrdup(s + 4); + + if (nuke_placer) { *s = '\0'; } } -- 2.30.2